/*
 * logengine.h
 *
 *  Created on: 2011-4-13
 *      Author: chenl
 */

#ifndef LOGENGINE_H_
#define LOGENGINE_H_

#include "logapi.h"

class CLogEngineBase
{
public:
	CLogEngineBase();
	CLogEngineBase(LogLevel logLevel);
	virtual ~CLogEngineBase();
	virtual int32_t WriteLog(LogLevel enmLogLv, const char* cszFormat, ...) = 0;
	static LogLevel GetLogLevel()
	{
		return logLevel_;
	}
	static void SetLogLevel(LogLevel logLevel)
	{
		logLevel_ = logLevel;
	}
private:
	static LogLevel 	logLevel_;
};

#endif /* LOGENGINE_H_ */
